home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr26 / pwrutls2.zip / MANUAL < prev    next >
Text File  |  1993-06-03  |  37KB  |  955 lines

  1. @@KEYSPEED.COM
  2. KEYSPEED                                             Dan Gookin
  3. ---------------------------------------------------------------
  4. Purpose:  KEYSPEED increases the repeat rate and delay rate of
  5.       your keyboard.
  6.  
  7. Format:   KEYSPEED.COM requires two parameters: one to specify
  8.       the repeat rate and another for the delay rate. The
  9.       syntax for KEYSPEED.COM is:
  10.  
  11.            KEYSPEED R=r D=d
  12.  
  13.       where "r" is a number from 0 to 31, specifying the
  14.       repeat rate, and "d" is a number from 0 to 3,
  15.       specifying the delay rate. Zero is the fastest repeat
  16.       rate, corresponding to roughly 30 characters a
  17.       second, and 31 is the slowest, equal to about 2
  18.       characters a second.
  19.  
  20.       Values for "d" result in the following wait times:
  21.  
  22.            d     Wait time
  23.            -    -----------
  24.            0     1/4 second
  25.            1     1/2 second
  26.            2     3/4 second
  27.            3     1 second
  28.  
  29. @@ALREADY.COM
  30. ALREADY
  31. ---------------------------------------------------------------
  32. Purpose:  ALREADY.COM works by checking the system date against
  33.       the date it has stored. If they're not the same,
  34.       ALREADY.COM writes a new copy of itself, storing the
  35.       current date in the process, and exits with
  36.       ERRORLEVEL 0. If the program has already run that
  37.       day, it returns ERRORLEVEL 1.
  38.  
  39. Remarks:  For example, to display a to-do list every morning
  40.       when you boot up, add these lines to your
  41.       AUTOEXEC.BAT file:
  42.  
  43.            ALREADY
  44.            IF ERRORLEVEL 1 GOTO SKIP
  45.            REM Things you only do once a day
  46.            TYPE TODO.TXT | MORE
  47.            PAUSE
  48.            :SKIP
  49.            REM Things you do every boot-up
  50.            CHKDSK /F
  51.  
  52. Caution:  Be sure to switch to the directory where ALREADY.COM
  53.       is stored before running the program. Otherwise,
  54.       you'll write a new copy of the program in the current
  55.       directory.
  56.  
  57. Note:     This utility must be run outside PCCNDX.
  58.  
  59. @@BATSPLIT.EXE
  60. BATSPLIT                                             Ed Quillen
  61. ---------------------------------------------------------------
  62. Purpose:  BATSPLIT allows you to combine all your batch files
  63.       into a single file and run them with BATSPLIT, saving
  64.       you disk space.
  65.  
  66. Note:     To use BATSPLIT, you need extended or expanded
  67.       memory, a high memory manager such as HIMEM.SYS.
  68.  
  69. Remarks:  To use BATSPLIT, you need a RAM disk in extended or
  70.       expanded memory. If you don't already have one, open
  71.       your CONFIG.SYS file and add the following line:
  72.  
  73.            DEVICEHIGH=C:\DOS\RAMDRIVE.SYS 128 128 128 /A
  74.  
  75.       This will create a 128k RAM disk in expanded memory
  76.       and automatically assign it a drive letter (in our
  77.       example, it's drive D:).
  78.  
  79.       Once you've set up a RAM disk, collect your batch
  80.       files into a compendium file. Issue the command COPY
  81.       *.BAT BATFILES to write all your batch files into a
  82.       single file, and open BATFILES in a text editor.
  83.  
  84.       At the start of each batch listing in the file, type
  85.       START followed by the batch file's name -- including
  86.       extension. At the end of each listing, type END
  87.       followed by the filename. A portion of the finished
  88.       file should look something like this:
  89.  
  90.            START WIN.BAT
  91.            @ECHO OFF
  92.            REM Changes to Windows directory,
  93.            REM loads Windows in Standard mode.
  94.            C:
  95.            CD\WIN3
  96.            WIN /S
  97.            END WIN.BAT
  98.  
  99.       Now, edit your AUTOEXEC.BAT file by adding the
  100.       following two lines before your path statement:
  101.  
  102.            MD D:\BATCH
  103.            C:\DOS\BATSPLIT
  104.  
  105.       These lines ensure that whenever you boot up, the
  106.       individual batch files from BATFILES will load into
  107.       D:\BATCH. Since they're up in the RAM disk (this
  108.       assumes you've set up a RAM disk), they execute
  109.       faster and don't use any extra hard disk space.
  110.  
  111. Note:     This utility must be run outside PCCNDX.
  112.  
  113. @@CHECKX87.COM                       
  114. CHECKX87                             Dale Lewallen/Jeff Prosise
  115. ---------------------------------------------------------------
  116. Purpose:  Test for a Math Coprocessor
  117.  
  118. Format:   Run CHECKX87 at the DOS prompt.
  119.  
  120. Remarks:  CHECKX87 checks for the presence of an Intel math
  121.       coprocessor (8087, 80287, or 80387) in the system. If
  122.       it finds one, it prints the message "80x87 installed"
  123.       and returns a DOS errorlevel value of 0. Otherwise,
  124.       CHECKX87 responds with "No 80x87 installed" and
  125.       returns a DOS errorlevel of 1.
  126.  
  127. @@COUNT.BAT
  128. COUNT                                          Ronny Richardson
  129. ---------------------------------------------------------------
  130. Purpose:  Batch Files that Count
  131.  
  132. Remarks:  Use this counting routine in batch files to perform
  133.       routine tasks such as backups that you want to
  134.       execute at regular intervals. Used in your
  135.       AUTOEXEC.BAT file, you can automatically run the
  136.       CHKDSK/F command every third time you reboot.
  137.  
  138. Format:   COUNT.BAT creates a zero-byte file and uses its name
  139.       as the counter. When you execute COUNT.BAT, it looks
  140.       for a file named BOOT? and branches to a label in the
  141.       batch file.
  142.  
  143.            ECHO OFF
  144.            CLS
  145.            IF NOT EXIST BOOT? GOTO NO
  146.            IF EXIST BOOT1 GOTO ONE
  147.            IF EXIST BOOT2 GOTO TWO
  148.            IF EXIST BOOT3 GOTO THREE
  149.            GOTO ERROR
  150.            :NO
  151.            TYPE NOFILE > BOOT2
  152.            GOTO END
  153.            :ONE
  154.            REN BOOT1 BOOT2
  155.            GOTO END
  156.            :TWO
  157.            REN BOOT2 BOOT3
  158.            GOTO END
  159.            :THREE
  160.            REN BOOT3 BOOT1
  161.            CHKDSK /F
  162.            GOTO END
  163.            :ERROR
  164.            ECHO ANOTHER "BOOT" FILE EXISTS;
  165.            ECHO PLEASE DELETE AND TRY AGAIN
  166.            GOTO END
  167.            :END
  168.  
  169.       When you execute COUNT.BAT, it checks for a file
  170.       named BOOT? and branches to a label in the batch
  171.       file.  Although most of the branches simply rename
  172.       the file to increment the counter, two take an
  173.       action: No types the nonexistent file NOFILE to
  174.       create the counter file (and names it BOOT2 to
  175.       reflect one iteration of the counter), while THREE
  176.       performs the CHKDSK /F command. Ignore the "File not
  177.       found" error message that appears when you first run
  178.       the batch file.  You can perform tests on as many
  179.       different branches as you like.
  180.  
  181.       For example, you might count to ten, performing
  182.       CHKDSK /F on five and an incremental backup the tenth
  183.       time you boot up.
  184.  
  185.       Adding IF tests takes the counter as high as you like
  186.       before recycling.  If you give the counters different
  187.       names, you con have as many counters as you like.
  188.  
  189. Note:     This utility must be run outside PCCNDX.
  190.  
  191. @@DOONCE.BAT                                      
  192. DOONCE                                            Chris Devoney
  193. ---------------------------------------------------------------
  194. Purpose:  Use this trick with your AUTOEXEC.BAT to make sure
  195.       tasks are run just once a day.
  196.  
  197. Remarks:  Do you have a few computerized tasks that you do at
  198.       the start of your day? Some people like running
  199.       CHKDSK first thing, to make sure their disks are
  200.       sound. Others check their electronic mailbox while
  201.       opening regular mail. Some software collectors like
  202.       to automate virus scans, in case recent downloads
  203.       have brought unwelcome visitors.
  204.  
  205.       The idea behind the once-a-day trick involves getting
  206.       the date from the DOS DATE command into an
  207.       environmental variable. The technique then searches
  208.       for a file whose name is based on the date. If the
  209.       file exists, that means your PC has already performed
  210.       its maintenance tasks for the day. If the file
  211.       doesn't exist, your PC proceeds to do its daily
  212.       chores.
  213.  
  214.       To implement the scheme, start by creating a DATES
  215.       subdirectory to hold the date file. Next, create the
  216.       CURRENT.BAT file in the root directory of Drive C:.
  217.       The single line for the file is:
  218.  
  219.            SET DATE=%4
  220.  
  221.       The filename is important; if you give this file a
  222.       different name, the procedure doesn't work.
  223.  
  224.       Finally, use your text editor or word processor to
  225.       add these lines to your AUTOEXEC.BAT file:
  226.  
  227.            ECHO Y | MORE | DATE >DATEIT.BAT
  228.            CALL DATEIT
  229.            DEL DATEIT.BAT
  230.            IF EXISTS \DATES\%DATE%.DT GOTO ALREADY
  231.             (Insert lines here for
  232.             the tasks to run once
  233.             each day)
  234.            DEL \DATES\*.DT
  235.            ECHO Y > \DATES\%DATE%.DT
  236.            :ALREADY
  237.            (Rest of your batch file, if any)
  238.  
  239. Note:     This utility must be run outside PCCNDX.
  240.  
  241. @@DTEST.COM
  242. DTEST and DTESTR.BAT
  243. ---------------------------------------------------------------
  244. Purpose:  Make FORMAT smarter with DTEST.COM, a program that
  245.       checks for the presence of a disk and returns
  246.       information about any disk it finds.
  247.  
  248. Remarks:  DTEST returns four ERRORLEVEL values that a batch
  249.       file can interpret: 0 for a disk that's already
  250.       formatted; 1 for a disk that's unformatted; 2 when
  251.       there's no disk in the drive; and 3 for a disk with
  252.       files on it.
  253.  
  254. Format:   To examine the disk in drive A:, for example, type
  255.       DTEST A:.
  256.  
  257. @@FZERO.BAS
  258. FZERO
  259. ---------------------------------------------------------------
  260. Purpose:  FZERO.BAS finds, lists, and deletes empty files from
  261.       all directories and subdirectories on all specified
  262.       logical drives.
  263.  
  264.       This program also deletes zero-length read-only files
  265.       but does not affect hidden files.
  266.  
  267. Remarks:  Before executing FZERO.BAS, check the logical health
  268.       of all drives that you want cleared of zero-length
  269.       files by typing at the DOS prompt:
  270.  
  271.            CHKDSK /F
  272.  
  273.       If the command asks whether to write corrections to
  274.       disk, answer "yes".
  275.  
  276. Format:   If you plan to use FZERO.BAS frequently, invoke it
  277.       from FZERO.BAT with the following commands:
  278.  
  279.            CHKDSK C: /F   GWBASIC FZERO
  280.  
  281.       Include the CHKDSK /F command with different drive
  282.       letters for each drive that you use with FZERO.BAS.
  283.       Replace GWBASIC with the name of the BASIC
  284.       interpreter you use (BASIC, BASICA).
  285.  
  286.       FZERO is currently set to scan drives C:, D:, and E:
  287.       consecutively. The program handles up to 12 logical
  288.       drives with minor revisions The code for changing the
  289.       drives is located in the source (.BAS) file in lines
  290.       40 through 70.
  291.  
  292. Note:     This utility must be run outside PCCNDX.
  293.  
  294. @@ISDEV.COM
  295. ISDEV
  296. ---------------------------------------------------------------
  297. Purpose:  ISDEV.COM lets batch files detect configuration
  298.       errors and respond to them before your applications
  299.       load.
  300.  
  301. Remarks:  To get the most from your applications, you may have
  302.       created different CONFIG.SYS files to include
  303.       extended memory for Windows 3.0, create expanded
  304.       memory for early versions of Lotus 1-2-3, or install
  305.       a RAM drive that accelerates slow programs. But with
  306.       all those configurations, it's easy to mix them up
  307.       and waste time locating the error.
  308.  
  309.       ISDEV.COM asks DOS if CONFIG.SYS has loaded drivers
  310.       for devices such as drives, mice or additional
  311.       memory. It checks only for drivers that CONFIG.SYS
  312.       loads at startup-those that typically sport A.SYS
  313.       extension like MOUSE(.SYS), not drivers loaded as
  314.       TSRs with a .COM extension (like MOUSE.COM).
  315.  
  316.       If DOS recognizes the driver, ISDEV returns an exit
  317.       code of 0. If it doesn't, ISDEV returns a 1. By using
  318.       DOS's ERRORLEVEL command, a batch file tells you if
  319.       the right device driver is loaded.
  320.  
  321. Format:   ISDEV d: or ISDEV device
  322.  
  323.       -now d: is the name of a drive device
  324.  
  325.       -name is the one- to eight-character name for a DOS
  326.       device ISDEV returns an exit code (ERRORLEVEL) of 0
  327.       if DOS recognizes the drive/device driver, 1 if it
  328.       doesn't.
  329.  
  330. Examples: To check for the existence of RAMDRIVE F:, use:
  331.  
  332.            ISDEV F:
  333.            IF ERRORLEVEL I GOTO NO GOOD
  334.  
  335.       To verify that DOS is using a Microsoft Mouse:
  336.  
  337.            ISDEV MS$MOUSE
  338.            IF ERRORLEVEL I GOTO NO-MOUSE
  339.  
  340.       To verify that CONFIG.SYS loaded the driver for your
  341.       Microsoft Mouse before you execute a program called
  342.       PAINT, create a startup batch file as follows:
  343.  
  344.            ISDEV MS$MOUSE IF NOT ERRORLEVEL 1 GOTO OKAY
  345.            ECHO MS-Mouse is missing!
  346.            GOTO END
  347.            :OKAY
  348.            PAINT
  349.            :END
  350.  
  351.       Remember that MS$MOUSE is the device name for the
  352.       Microsoft Mouse that DOS recognizes, not the device
  353.       driver filename, MOUSE.SYS. Here are device names for
  354.       several other devices:
  355.  
  356.            PC$MOUSE-Logitech or Mouse Systems mouse
  357.            XMSXXXXO-HIMEM.SYS XMS) memory
  358.            EMSXXXXO-LIM (EMS) memory
  359.            SMARTAAR-SMARTDRV
  360.            EMMXXXXO-QEMM-386
  361.  
  362.       One common driver ISDEV can't test for is ANSI.SYS,
  363.       which duplicates the service name of CON, used also
  364.       to refer to the console-the keyboard and display.
  365.       Since they're always loaded, ISDEV tells you CON is
  366.       loaded even if ANSI.SYS isn't.
  367.  
  368. Tips:     ISDEV lets you create intelligent batch files that
  369.       respond when a particular device is missing. Here's a
  370.       batch file for programs that store temporary files in
  371.       directories on your hard disk. If you accelerate a
  372.       program by forcing it to store temporary files on a
  373.       RAM drive, it won't run properly if the drive is
  374.       missing. Sometimes, though, you can't spare the RAM
  375.       for such a drive. This file tells the program to use
  376.       the TEMP directory on a normal drive, C:, for the
  377.       temporary files when the RAM drive, E:, is missing.
  378.  
  379.            ISDEV E:
  380.            IF ERRORLEVEL 1 GOTO NO-E
  381.            SET TEMP=E:\
  382.            GOTO JUMP
  383.            :NO-E
  384.            SET TEMP=C:\TEMP
  385.            :JUMP
  386.  
  387. @@MFORMAT.BAT
  388. MFORMAT
  389. ---------------------------------------------------------------
  390. Purpose:  To save time, format floppies in your dual-drive
  391.       system with MFORMAT.BAT.
  392.  
  393.       MFORMAT lets you format disks without stopping to
  394.       respond to prompts from DOS's FORMAT command. The
  395.       program works with systems containing two 5 1/4-inch
  396.       or two 3 1/2-inch drives, or one of each.
  397.  
  398. Remarks:  You pop floppies in both drives, and after formatting
  399.       one disk, the program formats the disk in the second
  400.       drive, while you restock the first drive. MFORMAT.BAT
  401.       responds when FORMAT prompts you to press Enter, Yes
  402.       or No. If you have a hard drive, make sure DOS's
  403.       FORMAT.COM program is in your path. if you have only
  404.       floppy drives, create a RAM drive and copy FORMAT.COM
  405.       to it.
  406.  
  407.            @ECHO OFF
  408.            CLS
  409.            ECHO. > REPLY.DAT
  410.            ECHO N > > REPLY.DAT
  411.            ECHO.> > REPLY.DAT
  412.            ECHO insert a new disk into each
  413.            ECHO drive. While the last disk is
  414.            ECHO being formatted remove the
  415.            ECHO disk from the other drive
  416.            ECHO and leave its door open
  417.            SET DR1=A:%1
  418.            SET DR2 = B:%2
  419.            SET DR=%DR1%
  420.            :BEGIN
  421.            FORMAT %DR% < REPLY.DAT
  422.            IF ERRORLEVEL 1 GOTO END
  423.            ECHO INSERT NEW DISK IN DRIVE %DR%
  424.            IF %DR%==%DR1%
  425.            GOTO MAKE_B
  426.            IF %DR%==%DR2% GOTO MAKE_A
  427.            :MAKE_A
  428.            SET DR=%DR1%
  429.            GOTO BEGIN
  430.            :MAKE_B
  431.            SET DR = %DR2%
  432.            GOTO BEGIN
  433.            :END
  434.            DEL REPLY.DAT
  435.            SET DR1 =
  436.            SET DR2=
  437.            SET DR=
  438.  
  439.       To execute the program, type MFORMAT on the command
  440.       line, followed by the appropriate FORMAT command
  441.       switches. For example, to format low-density disks on
  442.       5 1/4- and 3 1/2-inch high-density drives, type:
  443.  
  444.            MFORMAT /4 /N:9/T:80
  445.  
  446.       Lines 3 through 5 create the file REPLY.DAT, which
  447.       responds to prompts from FORMAT so you don't have to.
  448.       ECHO. inserts a carriage return. Lines 11 through 13
  449.       create environmental variables that lets DOS switch
  450.       between drives and format disks with the switches you
  451.       enter on the command line. If you always use the same
  452.       switches, set them up permanently.
  453.  
  454.       Lines 18 through 24 switch drives, branch back to
  455.       BEGIN, and restart the formatting process. When
  456.       you're done formatting, open the drive bay on the
  457.       drive not in use. When the batch file flips to the
  458.       empty drive, FORMAT generates an error code. The IF
  459.       ERRORLEVEL statement on line 16 responds to the error
  460.       by branching to the end of the program.
  461.  
  462. @@SOLVEIT.EXE
  463. SOLVEIT
  464. ---------------------------------------------------------------
  465. Purpose:  Even with the many powerful spreadsheet programs
  466.       currently available, computer users still turn to
  467.       adding machines or calculators when doing simple
  468.       calculations.
  469.  
  470.       Creating the batch file SOLVEIT.BAT puts a very
  471.       powerful calculator at your fingertips each time you
  472.       use your computer.
  473.  
  474. Format:   SOLVEIT.BAT lets you enter complex arithmetic
  475.       expressions at the DOS prompt. For example, the
  476.       following command gives you the product of three
  477.       multiplications:
  478.  
  479.            SOLVEIT 256*33*4
  480.  
  481.       When you enter it, you'll see a display that looks
  482.       like this:
  483.  
  484.            Solve: 256*33*4
  485.  
  486.            Solution: 33792
  487.  
  488.       If there's a mistake (say, a typo) SOLVEIT gives you
  489.       an error message.
  490.  
  491. Remarks:  SOLVEIT can use parentheses in a more complex
  492.       expression.
  493.  
  494.            SOLVEIT (3+5)*(4-1)/(3+2)
  495.  
  496.       SOLVEIT.BAT supports addition subtraction (-),
  497.       multiplication (*) and division (/). If an expression
  498.       contains different types of operators without
  499.       parentheses, the program performs multiplication and
  500.       division operations first, followed by addition and
  501.       subtraction. In addition to the basic arithmetic
  502.       operators, SOLVEIT.BAT supports arithmetic functions
  503.       as listed in the box included below.
  504.  
  505.       The following command, for example, uses SOLVEIT to
  506.       display the square root of 144 times 3.
  507.  
  508.            SOLVEIT SQR(144)*3
  509.  
  510. Note:     This utility must be run outside PCCNDX.
  511.  
  512. @@WARM.COM
  513. WARM
  514. ---------------------------------------------------------------
  515. Purpose:  Executed from the command line or from inside a batch
  516.       file, WARM initiates a reset, just as if you had
  517.       pressed Ctrl-Alt-Del.
  518.  
  519. Remarks:  There are other applications for WARM. For example,
  520.       if you find yourself frequently switching CONFIG.SYS
  521.       and AUTOEXEC.BAT files to select between two or more
  522.       startup configurations, you could write a batch file
  523.       to copy the proper configuration files to the root
  524.       directory and make WARM the final command in the
  525.       batch file. Then, when the batch file is executed,
  526.       your PC will automatically reboot itself.
  527.  
  528. @@COLD.COM
  529. COLD
  530. ---------------------------------------------------------------
  531. Purpose:  Executed from the command line or from inside a batch
  532.       file, COLD initiates a reset, just as if you had
  533.       pressed the RESET button on your computer.
  534.  
  535. Remarks:  There are other applications for COLD. For example,
  536.       if you find yourself frequently switching CONFIG.SYS
  537.       and AUTOEXEC.BAT files to select between two or more
  538.       startup configurations, you could write a batch file
  539.       to copy the proper configuration files to the root
  540.       directory and make WARM the final command in the
  541.       batch file. Then, when the batch file is executed,
  542.       your PC will automatically reboot itself.
  543.  
  544. @@WARN.BAS
  545. WARN
  546. ---------------------------------------------------------------
  547. Purpose:  A simple BASIC program in AUTOEXEC.BAT lets you know
  548.       when your hard drives are filling up.
  549.  
  550. Format:   Make sure the directory containing BASICA or GWBASIC
  551.       (usually your DOS directory) and the directory
  552.       containing WARN.BAS are on the DOS search path. Then,
  553.       type:
  554.  
  555.            GWBASIC WARN
  556.  
  557. Remarks:  The best way to use WARN.BAS is to include that line
  558.       in your AUTOEXEC.BAT so that WARN will run
  559.       automatically each time you turn on your machine.
  560.       Substitute BASICA for GWBASIC if that is the name of
  561.       your BASIC interpreter.
  562.  
  563.       Your system will take a few seconds longer to boot
  564.       while the program checks the system drives. If none
  565.       of your drives falls below the warning level (977
  566.       clusters for DOS 3.x or 488 clusters for DOS 4.x),
  567.       nothing happens. But when you're running short of
  568.       disk space, WARN beeps and displays a message warning
  569.       you which drives are running out of room.
  570.  
  571. Note:     This utility must be run outside PCCNDX.
  572.  
  573. @@WHEREIAM.EXE
  574. WHEREIAM
  575. ---------------------------------------------------------------
  576.  
  577. Purpose:  WHEREIAM displays a message and a digital clock, both
  578.       of which move randomly around your screen.
  579.  
  580. Format:   Execute the program by typing the command WHEREIAM.
  581.  
  582. Remarks:  WHEREIAM first prompts you for the message you want
  583.       displayed. Type any combination of alphanumeric
  584.       characters, up to 255 characters in length, and press
  585.       [Enter]. WHEREIAM then reminds you to type "Q" or "q"
  586.       when you want to stop the program.
  587.  
  588.       If you plan to use this program frequently, create a
  589.       batch file called WHEREIAM.BAT, which fires up the
  590.       program with a minimum of keystrokes:
  591.  
  592.            ECHO OFF
  593.            WHEREIAM
  594.  
  595.       Store this file in a directory on your DOS PATH.
  596.       Invoke the program by typing WHEREIAM at the DOS
  597.       prompt.
  598.  
  599. @@DECHEX.COM
  600. DECHEX                               Dale Lewallen/Jeff Prosise
  601. ---------------------------------------------------------------
  602. Purpose:  DECHEX converts decimal numbers to hexadecimal
  603.           formats and displays the results on your screen.
  604.  
  605. Format:   DECHEX nnnn
  606.  
  607. Remarks:  DECHEX is a simple Decimal to Hexadecimal conver-
  608.           sion routine.  It converts a simple decimal number
  609.           to hexadecimal format.
  610.  
  611.           Use DECHEX nnnn, where "nnnn" is any decimal number.
  612.  
  613. @@NOSOUND.COM
  614. NOSOUND                              Dale Lewallen/Jeff Prosise
  615. ---------------------------------------------------------------
  616. Purpose:  Disable your PC's internal speaker.
  617.  
  618. Format:   Place the file NOSOUND.COM in your \DOS
  619.           Directory.  Then, to use the program, type
  620.           NOSOUND at the DOS Prompt.
  621.  
  622. Program   N NOSOUND.COM
  623.   Code for     E 0100 EB 1A 00 00 00 00 9C 2E
  624.   DEBUG:       E 0108 FF 1E 02 01 9C 50 FB E4
  625.                E 0110 61 EB 00 24 FC E6 61 58
  626.                E 0118 9D CA 02 00 B8 1C 35 CD
  627.                E 0120 21 89 1E 02 01 8C 06 04
  628.                E 0128 01 B8 1C 25 BA 06 01 CD
  629.                E 0130 21 BA 1C 01 CD 27
  630.                RCX
  631.                36
  632.                W
  633.                Q
  634. @@SHOWEMS.COM
  635. SHOWEMS                              Dale Lewallen/Jeff Prosise
  636. ---------------------------------------------------------------
  637. Purpose:  SHOWEMS looks for expanded memory and, if it's
  638.           present, displays the EMS version number.
  639.  
  640. Remarks:  This will usually be EMS 4.0. But older expanded
  641.           memory boards (and even EMS emulators) may only
  642.           provide EMS 3.2 expanded memory. The distinction
  643.           is important, because, as noted, some EMS-aware
  644.           programs require EMS 4.0.
  645.  
  646.           If SHOWEMS doesn't find expanded memory in the
  647.           system, it reports, "No expanded memory manager
  648.           installed." You will also get this response if
  649.           a PC contains expanded memory hardware but no
  650.           expanded memory driver is enabled to enable it.
  651.           If the system does contain expanded memory,
  652.           SHOWEMS reports the version number.
  653.  
  654. Format:   Type SHOWEMS at any DOS Prompt. (Ensure SHOWEMS
  655.           is in the current directory or in your path.)
  656.  
  657. @@WAIT.COM
  658. WAIT                                                 Ed Quillen
  659. ---------------------------------------------------------------
  660. Purpose:  WAIT is a short utility that lets you build a
  661.           delay into any batch file and determine its
  662.           duration on a case-by-case basis.
  663.  
  664.           If you press any key before WAIT reaches its
  665.           timeout, it returns the errorlevel that can
  666.           take you past a step in your batch file.
  667.  
  668. Format:   To use the program, insert the word WAIT on its
  669.           own line in a batch file, followed by a number
  670.           that represents how many seconds you want the
  671.           file to wait before it moves to the next line.
  672.  
  673.           On the line directly beneath WAIT, insert
  674.  
  675.                     IF ERRORLEVEL 1 GOTO
  676.  
  677.           followed by a location (label) name such as
  678.           SKIP in the example below.  In this example, the
  679.           batch file waits ten seconds before backing up
  680.           or skis to an impertinent message at the end if
  681.           you press a key.
  682.  
  683.         ECHO Will back up in 10 seconds unless you press a key
  684.         WAIT 10
  685.         IF ERRORLEVEL 1 GOTO SKIP
  686.         BACKUP C:\*.* /S A:
  687.         GOTO END
  688.         :SKIP
  689.         Echo Hey, you really should back up
  690.         :END
  691.  
  692. @@KEYMOD.COM
  693. KEYMOD                                            Paul Somerson
  694. ---------------------------------------------------------------
  695. Purpose:  KEYMOD is a batch file and short program to
  696.           modify assignment of keys on your keyboard.
  697.  
  698. Usage:    First, check that ANSI.SYS is in your DOS
  699.           directory or elsewhere on your hard disk, and
  700.           then ensure that it's listed as a device in your
  701.           CONFIG.SYS file. Open CONFIG.SYS in DOS 5.0's
  702.           EDIT or a similar text editor and look for a line
  703.           such as DEVICE=C:\DOS\ANSI.SYS (or one containing
  704.           a different path to the same file). If it's
  705.           missing, add it and then reboot to tload the
  706.           driver into RAM. It will take up about 4.1k of
  707.           conventional memory.
  708.  
  709.           Next, create a special subdirectory called SETKEY
  710.           under your batch file or utilities subdirectory
  711.           to contain KEY.COM and ANSIKEY.BAT. Change to the
  712.           appropriate parent directory and enter MD SETKEY.
  713.           Press ENTER, and then type CD SETKEY to take you
  714.           to that directory.
  715.  
  716.           Next, create two batch files to take you to the
  717.           SETKEY directory and start the process.  This
  718.           extra step is necessary because ANSIKEY creates a
  719.           file that enables you to reset your keys and
  720.           always puts this file in the subdirectory from
  721.           which you launch the batch file. To avoid
  722.           littering your hard disk with reset files, you
  723.           must issue the batch file from the same
  724.           subdirectory every time, and a second batch
  725.           file is the easiest way to do it.
  726.  
  727.           With this set of files and programs, you can
  728.           reassign functions between keys and assign text
  729.           to a given key. You should be able to change any
  730.           single-digit ASCII key, including numbers,
  731.           letters, Shift- and Ctrl-key combinations, the
  732.           number pad's direction keys (arrows, Home, End,
  733.           PageUp, PageDn), Ins, Del, Backspace, Enter (try
  734.           this carefully), Ctrl-Enter, and most punctuation
  735.           keys. The exceptions are the gray keys mentioned
  736.           in the file's REM lines.
  737.  
  738.           To assign a string to a key, type SETKEY followed
  739.           by a string up to nine words long. This technique
  740.           is useful for assigning hard-to-type commands to a
  741.           single key. Attaching reminders to keys is another
  742.           use of the technique.  Let's say you want to assign
  743.           the phone number of your systems manager or
  744.           resident DOS helper to the F1 key. Enter the
  745.           following line:
  746.  
  747.                         SETKEY Call 7021 for help
  748.  
  749.           When you press Enter, the batch file will prompt
  750.           you to press the key. For this example, press
  751.           F1 and then press it again when prompted for a
  752.           double-check. When you're assigning a string to a
  753.           key, the batch file will offer to put a carriage
  754.           return at the end of the line. This is handy if
  755.           you're assigning a command such as DIR /P /W,
  756.           but in this case, press N. You'll be given the
  757.           option to avoid overwriting the RESET file, to
  758.           which you should answer Y. Now, whenever you press
  759.           F1, you'll see the string you've assigned to it.
  760.  
  761.           ANSIKEY creates a file called RESET.BAT in its
  762.           subdirectory whenever you reassign keys. Use the
  763.           DOS TYPE command to check it out.
  764.  
  765.           Enter RESET to restore F1, and after you see the
  766.           reset message, press F1 to verify.
  767.  
  768. @@ADDTOIT.COM
  769. ADDTOIT                              Jeff Prosise/Dale Lewallen
  770. ---------------------------------------------------------------
  771. Purpose:  Extend path environment variable to any length.
  772.  
  773. Format:   ADDTOIT [drive:] [path]
  774.  
  775. Usage:    ADDTOIT lets you append additional directory names
  776.           to the end of your path environment variable set
  777.           up in your AUTOEXEC.BAT. It lets you break up a
  778.           long PATH command into several commands. For
  779.           example, to render a path of
  780.  
  781.                     C:\DOS;C:\WINDOWS;C:\MASM\BIN;
  782.  
  783.           use the following syntax:
  784.  
  785.                     PATH=C:\DOS;C:\WINDOWS;
  786.                     ADDTOIT C:\MASM\BIN
  787.  
  788.           or even:
  789.  
  790.                     PATH=C:\DOS;
  791.                     ADDTOIT C:\WINDOWS
  792.                     ADDTOIT C:\MASM\BIN
  793.  
  794. Remarks:  By breaking a long PATH statement into smaller
  795.           components that fit within DOSs 127-character
  796.           limit on individual commands, you can create PATH
  797.           strings that are limited only by the amount of
  798.           free space If ADDTOIT displays the "Insufficient
  799.           environment space" error message, increase the
  800.           environment size with a SHELL statement in
  801.           CONFIG.SYS.
  802.  
  803.           Another error message you might see from ADDTOIT
  804.           is "PATH variable not found". This means that the
  805.           environment currently contains no PATH string.
  806.  
  807.           (ADDTOIT can't create a path statement; it can
  808.           only add directory names to an existing PATH.)
  809.  
  810.           One annoying drawback to DOSs SET and PATH
  811.           commands is that they will display only the first
  812.           127 characters of the PATH, even though DOS uses
  813.           the full ADDTOIT path when it searches your hard
  814.           disk for an executable file.
  815.  
  816. Comments: Use ADDTOIT in moderation. Long PATH strings slow
  817.           DOS down, and the later a directory name appears
  818.           in a PATH string, the longer it takes DOS to find
  819.           a program file in that directory. Keep your PATH
  820.           statements as short as possible.
  821.  
  822. @@MARQUEE.BAS
  823. MARQUEE                                            David Rygmyr
  824. ---------------------------------------------------------------
  825. Purpose:  Basic screen saver for DOS and QBasic Runtime.
  826.  
  827. Format:   QBASIC /RUN MARQUEE.BAS
  828.  
  829.           (This assumes you have both MARQUEE.BAS and
  830.           QBASIC.EXE in your DOS path.)
  831.  
  832. Comment:  Create a batch file called MARQUEE.BAT that
  833.           types the above "Usage" text for you.
  834.  
  835. Remarks:  Screen savers are neither new nor exciting but
  836.           their virtues are legendary. While you're away
  837.           from your PC, a screen saver prevents the electron
  838.           gun in your monitor's cathode ray tube (CRT) from
  839.           overstimulating the phosphors that coat the inside
  840.           of your screen which, over time, would reduce
  841.           their luminosity and could cause characters to be
  842.           burned into the screen. The classic screen saver
  843.           is memory resident--and like any TSR, it hogs
  844.           system resources and conflicts with most drivers
  845.           and programs you want to run.
  846.  
  847.           MARQUEE.BAS is an alternative.  It is a QBasic
  848.           program you can use to blank your screen or display
  849.           with a scrolling message of up to 79 characters
  850.           (that is, a screen's width less 1 character).
  851.  
  852.           This screen saver is compatible with Windows 3.1.
  853.           Add a program icon to one of your groups called
  854.           MARQUEE. For the command line syntax, use the
  855.           QBASIC /RUN syntax listed above. Then, when you
  856.           want a quick screen saver in Windows, click on the
  857.           icon and type in a quick message and your screen
  858.           will be blanked with the quick message you typed
  859.           until you restore the screen upon your return.
  860.  
  861. @@VIEWER.COM
  862. VIEWER                                             Jeff Prosise
  863. ---------------------------------------------------------------
  864. Purpose:  View Binary Files Without the DOS Beep
  865.  
  866. Usage:    VIEWER < CHKDSK.EXE > CHKDSK.TXT
  867.           VIEWER < CHKDSK.EXE
  868.  
  869. Remarks:  Try to view a nontext file with DOSs TYPE or MORE
  870.           command and all you'll get is junk and beeps.
  871.           Binary files, though, often contain useful text
  872.           information such as error messages, copyright
  873.           information, etc., that can help you identify
  874.           mystery files on ao hard disk.
  875.  
  876.           VIEWER scans binary files for embedded text messages.
  877.  
  878.           To view longer files onscreen, pip VIEWERs output
  879.           to MORE, as in:
  880.  
  881.                     TYPE CHKDSK.TXT|MORE
  882.  
  883. @@TODAY.BAS
  884. TODAY                                              David Rygmyr
  885. ---------------------------------------------------------------
  886. Purpose:  Fast File Finder for Mobile PC
  887.  
  888. Usage:    QBASIC /RUN TODAY.BAS
  889.  
  890. Remarks:  This program requires the QBASIC Runtime module,
  891.           which should be located in your \DOS directory.
  892.  
  893.           TODAY.BAS searches all subdirectories on specified
  894.           drives for any files with specific extensions and
  895.           the current date in effect, it rounds up any file
  896.           you've edited or created that day.
  897.  
  898.           As it finds files, it asks whether you want them
  899.           copied to the floppy drive and prompts you for a
  900.           Y or N answer. A reply of N restarts the search
  901.           for more recently created or edited files; a Y
  902.           keystroke first copies the named file to the root
  903.           directory of your floppy disk, then moves on to
  904.           find others.
  905.  
  906.           The program's operation is simple which is the
  907.           whole point of the exercise but your drive
  908.           configuration and the extension of the files
  909.           you're interested in will probably differ from
  910.           the example we provide. If you modify data on only
  911.           your C: and D: drives and want to copy only files
  912.           with .DOC and .XLS extensions to drive A:, TODAY.BAS
  913.           will work for you exactly as it is written. If your
  914.           needs are different, here's how to customize the
  915.           program.
  916.  
  917.           To copy files to a drive other than A:, modify the
  918.           DestDrv$ statement in the main program.  To copy
  919.           to drive B:, for instance, type the line
  920.  
  921.             DestDrv$ = "B:"
  922.  
  923.           To modify the names of the hard disks you want to
  924.           search, change the DATA statement to include
  925.           either different letters or more drives. If you add
  926.           drives, be sure to modify the earlier variable
  927.           NumOfDrives% to reflect the new total. For instance,
  928.           to check drives C:, F:, and G:, modify the two lines
  929.           like this:
  930.  
  931.             FOR NumOfDrives% = 1 TO 3
  932.             and
  933.             DATA "C:\", "F:\", "G:\"
  934.  
  935.           Finally, to change the file extensions or to add
  936.           new ones go to the subroutine and find the line
  937.           that starts IF Ext$ = "DOC". Replace the .DOC and
  938.           .XLS extensions with any that you work on
  939.           regularly and add as many as you like. To avoid
  940.           typing errors, use your text editor's copy and
  941.           paste commands to stack multiple Ext$ strings,
  942.           and type over the copied extension. If you use
  943.           nonstandard file extensions (such as month
  944.           abbreviations), a long chain of Ext$ strings
  945.           starting with
  946.  
  947.             IF Ext$ = "JAN" OR Ext$ = "FEB"
  948.  
  949.           and ending with THEN would work fine. To look
  950.           for all files with the current date, simply
  951.           comment out this line. Alternatively, instruct
  952.           the program to search for COM or EXE files that
  953.           were changed something virus programs are very
  954.           fond of doing.
  955.